package com.ydzh.kfqgwvisitor.controller;


import com.ydzh.kfqgwvisitor.base.Result;
import com.ydzh.kfqgwvisitor.service.ShortMessageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 烟台业达-许晖
 * @since 2021-10-29
 */
@RestController
@RequestMapping("/shortMessage")
@Api(tags = "短信")
public class ShortMessageController {

    @Autowired
    private ShortMessageService messageService;

    @ApiOperation(value = "查询未读的短信集合列表")
    @GetMapping("/listMessage")
    public Result listMessage() {

        return Result.buildSuccess(messageService.listMessage());
    }

}

